import Vue from 'vue'
import filters from './filters'

export default function setupFiltersPlugin() {
    // 全局导入过滤器,必须写在 new Vue()之前，否则会不生效！
    Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));
}